//
//  EditCustomView.m
//  Comma
//
//  Created by 杜远洋 on 15-1-20.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EditCustomView.h"

@implementation EditCustomView

- (instancetype)initWithFrame:(CGRect)frame titleName:(NSString *)titleName contentName:(NSString *)contentName
{
    self = [super initWithFrame:frame];
    if (self) {
        if (iPhone6) {
            self.myTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 15)];
        }
        
        if (iPhone5) {
            self.myTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 15)];
        }
        if (iPhone6Plus) {
            self.myTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 15)];
        }
        [self.myTitle setText:titleName];
        [self.myTitle setFont:[UIFont systemFontOfSize:11]];
        [self.myTitle setTextColor:TEXTGREENCOLOR];
        [self.myTitle setBackgroundColor:[UIColor clearColor]];
        [self addSubview:self.myTitle];
        
        self.myContent = [[UITextField alloc] initWithFrame:CGRectMake(0, 15, 345, 20)];
        [self.myContent setText:contentName];
        [self.myContent setFont:[UIFont systemFontOfSize:14]];
        [self.myContent setTextColor:BLACKCOLOR];
        [self addSubview:self.myContent];
    }
    return self;
}


@end
